﻿using FriendStar.Code;
using System.Web.Mvc;
using FriendStar.Application.MainData;
using FriendStar.Domain.Entity.MainData;

namespace FriendStar.Web.Areas.BaseData.Controllers
{
    public class CPK_ZD_11_DatStoreHouseController : ControllerBase
    {
        private CPK_ZD_11_DatStoreHouseApp cpk_ZD_11_DatStoreHouseApp = new CPK_ZD_11_DatStoreHouseApp();
        //仓库编码
        [HttpGet]
        [HandlerAjaxOnly]
        public ActionResult GetGridJson(string keyword)
        {
            var data = cpk_ZD_11_DatStoreHouseApp.GetList(keyword);
            return Content(data.ToJson());
        }

        public ActionResult GetStoreHouses(string stockNO)
        {
            var data = cpk_ZD_11_DatStoreHouseApp.GetStoreHouses("P1", "1",stockNO);
            return Content(data.ToJson());
        }

        public ActionResult GetStoreHousesForStampingRoom(string stockNO)
        {
            var data = cpk_ZD_11_DatStoreHouseApp.GetStoreHouses("P8", "1", stockNO);
            return Content(data.ToJson());
        }

        public ActionResult SubmitForm(CPK_ZD_11_DatStoreHouseEntity cpk_ZD_11_DatStoreHouseEntity)
        {
            cpk_ZD_11_DatStoreHouseApp.SubmitForm(cpk_ZD_11_DatStoreHouseEntity);
            return Success("操作成功。");
        }
    }
}


 
